package com.cgtong.android.mvp.contract;

import com.cgtong.android.bean.ActivityBean;
import com.cgtong.android.bean.BannerBean;
import com.zhouyou.http.callback.SimpleCallBack;

import java.util.List;

/**
 * Created by Sky.Bing on 2017/10/24.
 */

public interface WonderfulActivityContract {
    interface View {
        void onLoadError();
        void onLoadMoreError();

        void setEnableLoadMore(boolean enabled);

        void setRefreshing(boolean isRefresh);

        void showActivityList(boolean isRefresh, List<ActivityBean> activityBeanList);

        void showBanner(List<BannerBean> bannerBeanList);
    }

    interface Model {
        void getActivityList(int maxId, SimpleCallBack callBack);
        void getBannerList(SimpleCallBack callBack);
    }

    interface Presenter {
        void getActivityList(int maxId);

        void loadMoreActivity(int maxId);

        void getBannerList();
    }
}